<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="{:url('VisitCount/index')}" method="post">
        <input type="hidden" name="pageSize" value="{$pageSize}">
        <input type="hidden" name="pageCurrent" value="{$pageCurrent}">
        <input type="hidden" name="orderField" value="{$orderField}">
        <input type="hidden" name="orderDirection" value="{$orderDirection}">
        <div class="bjui-searchBar">
            <label>VCID：</label><input type="text" value="{$keys.vcid|default=''}" name="keys[vcid]" class="form-control" size="8">&nbsp;
            <label>推广名称：</label><input type="text" value="{$keys.aid|default=''}" name="keys[aid]" class="form-control" size="10">&nbsp;
            <label>二级目录：</label><input type="text" value="{$keys.top|default=''}" name="keys[top]" class="form-control" size="10">&nbsp;
            <label>域名：</label><input type="text" value="{$keys.bottom|default=''}" name="keys[bottom]" class="form-control" size="15">&nbsp;
            <label>日期：</label><input type="text" value="{$keys.xdate|default=''}" name="keys[xdate]" data-toggle="datepicker" class="form-control" size="12">&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <div class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">复选框-批量操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        {if authcheck('Admin/VisitCount/del')}
                            <li><a href="{:url('VisitCount/del')}" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-reload="false" data-idname="delids" data-group="ids">删除选中</a></li>
                        {/if}
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
        <thead>
            <tr>
            {volist name="thead" id="val"}
                <th {neq name="$key" value="group"}data-order-field="{$key}"{/neq}>{$val}</th>
            {/volist}
                <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                <th width="80">操作</th>
            </tr>
        </thead>
        <tbody>
            {volist name="list" id="row"}
            <tr data-id="{$row.vcid}">
                {volist name="thead" id="val"}
                <td>{$row[$key]}</td>
                {/volist}
                <td><input type="checkbox" name="ids" data-toggle="icheck" value="{$row.vcid}"></td>
                <td>
                    {if authcheck('Admin/VisitCount/del')}
                        <a href="{:url('VisitCount/xdel',['vcid'=>$row['vcid']])}" class="btn btn-orange" data-reload="false" data-toggle="doajax" data-confirm-msg="确定要清空该行信息吗？">清空</a>
                    {/if}
                </td>
            </tr>
            {/volist}
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-width="50" data-toggle-change="changepagesize">
                <option value="20">20</option>
                <option value="40">40</option>
                <option value="60">60</option>
            </select>
        </div>
        <span>&nbsp;条，共 {$totalCount} 条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="{$totalCount}" data-page-size="20" data-page-current="{$pageCurrent}">
    </div>
</div>